package main

import (
	"os"

	myrpc "github.com/2217263633/kakarpc"
	"github.com/gin-gonic/gin"
	"github.com/swaggo/swag/example/override/docs"
)

func main() {
	var yaml myrpc.ServerStruct = myrpc.ServerStruct{
		Chinese_name: "合伙人服务",
		Name:         "Partner",
		Router: map[string]interface{}{
			"GetUser": []string{"int", "User"},
		},
		Mode:      myrpc.Debug,
		Port:      1235,
		Swag_port: 1236,
	}
	yaml.Path, _ = os.Getwd()
	docs.SwaggerInfo.BasePath = ""
	gin.SetMode(gin.ReleaseMode)
	// funcs.Rpc.R = router.Router()
	// funcs.Rpc.Conn = new(method.UserService)
	// myrpc.MyRpc.GoRpc(&yaml, &funcs.Rpc)
}
